public class Test {
    public static void main(String[] args) {
       String s1 = new String("hello");
       int a = s1.indexOf('l');
        System.out.println(a);//2
    }
}
